package com.ffyc.resale.web;

import com.ffyc.resale.model.Result;
import com.ffyc.resale.service.CarouselService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/CarouselCtl")
@Api(tags = "首页轮播图图片")
public class CarouselController {
    @Autowired
    CarouselService carouselService;
    @GetMapping("/getCarousel")
    public Result Carousel(){
        Result result = new Result(200,"成功",carouselService.Carousel());
        return result;

    }

}
